#include "print.h"

static bool bprint = true;

void print(){
}

void setPrint(bool p) {
    bprint = p;
}

bool isPrint() {
    return bprint;
}

void print(const std::string& str) {
    if (bprint == false) {
        return;
    }
    String out;
    for (auto ch : str) {
        out.concat(ch);
    }
    Serial.print(out);
}
